package com.ac.app.web.form;

import java.text.ParseException;

import com.ac.app.dm.PickOrg;
import com.caac.core.util.DateUtils;
import com.caac.core.web.form.BaseForm;

public class PickOrgForm extends BaseForm{
	private PickOrg dm;

	public PickOrg getDm() {
		return dm;
	}

	public void setDm(PickOrg dm) {
		this.dm = dm;
	}
	
	public void setExpiringString(String expiringString){
		try {
			dm.setExpiring(DateUtils.convertToDate(expiringString));
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	public String getExpiringString(){
		return DateUtils.convertToString(dm.getExpiring());
	}
}